package com.wjerp.tplus.server.common.model;

import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;
import java.util.List;

/**
 * @author lishuailei
 */
public class WxApiResponseData implements Serializable {


    /**
     * 更多返回参数示例值请参看“错误参照码”
     */
    private String code;
    /**
     * false：不扣费 true：扣费
     */
    private Boolean charge;

    /**
     * 数据剩余次数
     */
    private Long remain;

    /**
     * 更多返回参数示例值请参看“错误参照码”
     */
    private String msg;

    /**
     * 数据查询结果
     */
    private JSONObject result;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Boolean getCharge() {
        return charge;
    }

    public void setCharge(Boolean charge) {
        this.charge = charge;
    }

    public Long getRemain() {
        return remain;
    }

    public void setRemain(Long remain) {
        this.remain = remain;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public JSONObject getResult() {
        return result;
    }

    public void setResult(JSONObject result) {
        this.result = result;
    }

    class ResponseResult  implements Serializable{
        private Message message;
        private Invoice invoice;

        public Message getMessage() {
            return message;
        }

        public void setMessage(Message message) {
            this.message = message;
        }

        public Invoice getInvoice() {
            return invoice;
        }

        public void setInvoice(Invoice invoice) {
            this.invoice = invoice;
        }
    }

    class Message implements Serializable{
        /**
         * 识别状态码
         */
        private Integer status;

        /**
         * 是否成功
         */
        private String value;

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }

    class Invoice  implements Serializable{
        private List<InvoiceList> invoiceLists;
        private List<VerItem> verItem;

        public List<InvoiceList> getInvoiceLists() {
            return invoiceLists;
        }

        public void setInvoiceLists(List<InvoiceList> invoiceLists) {
            this.invoiceLists = invoiceLists;
        }

        public List<VerItem> getVerItem() {
            return verItem;
        }

        public void setVerItem(List<VerItem> verItem) {
            this.verItem = verItem;
        }
    }

    class InvoiceList  implements Serializable{
        private List<VerItem> invoiceList;

        public List<VerItem> getInvoiceList() {
            return invoiceList;
        }

        public void setInvoiceList(List<VerItem> invoiceList) {
            this.invoiceList = invoiceList;
        }
    }

    class VerItem  implements Serializable{
        /**
         * "desc":"发票状态",
         *  "name":"state",
         *  "content":"1"
         */

        private String desc;
        private String name;
        private String content;

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }
}
